//
//  GwWebsocket.h
//  gongwei-ios
//
//  Created by gongwei-mac on 2020/1/20.
//  Copyright © 2020 gongwei-mac. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <SocketRocket.h>

@interface GwWebsocket : NSObject

/** 连接状态 */
@property (nonatomic,assign) SRReadyState socketReadyState;
@property (nonatomic,  copy) void (^didReceiveMessage)(id message);
+ (GwWebsocket *)instance;

-(void)SRWebSocketOpen;//开启连接
-(void)SRWebSocketClose;//关闭连接
- (void)sendData:(NSDictionary *)paramDic;//发送数据
- (void)registerNetworkNotifications;//监测网络状态

@end
